package tables

import (
	"time"
)

type SepatateOrder struct {
	Id            int       `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	UserId        int       `xorm:"" json:"user_id" form:"user_id" mapstructure:"user_id"`
	TotalAmount   float32   `xorm:"" json:"total_amount" form:"total_amount" mapstructure:"total_amount"`
	OrderNo       string    `xorm:"" json:"order_no" form:"order_no" mapstructure:"order_no"`
	SubMchId      string    `xorm:"" json:"sub_mch_id" form:"sub_mch_id" mapstructure:"sub_mch_id"`
	IpAddr        string    `xorm:"" json:"ip_addr" form:"ip_addr" mapstructure:"ip_addr"`
	TransactionId string    `xorm:"" json:"transaction_id" form:"transaction_id" mapstructure:"transaction_id"`
	Body          string    `xorm:"" json:"body" form:"body" mapstructure:"body"`
	CreatedAt     time.Time `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt     time.Time `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt     time.Time `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	Acid          int       `xorm:"" json:"acid" form:"acid" mapstructure:"acid"`
	Openid        string    `xorm:"" json:"openid" form:"openid" mapstructure:"openid"`
	State         int       `xorm:"" json:"state" form:"state" mapstructure:"state"`
	SeparateState int       `xorm:"" json:"separate_state" form:"separate_state" mapstructure:"separate_state"`
	PayTime       int64     `xorm:"" json:"pay_time" form:"pay_time" mapstructure:"pay_time"`
}
